package com.yang;

import com.yang.yangCommand.AddRankController;
import com.yang.yangCommand.CreateRankController;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

/**
 * 队伍功能
 * @author zhaoyang
 * @author QQ邮箱: 2655906529@qq.com
 * @author QQ:2655906529
 * @author WX:C2655906529
 * @author zhaoyangweb.com
 * @author aixiaoyao.com
 */
public final class YangRanks extends JavaPlugin {

    @Override
    public void onEnable() {
        // 读取config.yml
        this.saveDefaultConfig();
        // 注册监听事件
        // 指令注册
        Bukkit.getPluginCommand("createRank").setExecutor(new CreateRankController(this));

        Bukkit.getPluginCommand("addRank").setExecutor(new AddRankController(this));



    }

    @Override
    public void onDisable() {
        // Plugin shutdown logic
    }
}
